<?php
/* @var $this HrAdminUserController */
/* @var $model HrAdminUser */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'hr-admin-user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php //echo $form->textField($model,'name',array('size'=>60,'maxlength'=>64)); ?>
        <input type="text" name="name" id="name" value="<?php echo isset($model->name)?$model->name:'';?>" class="small_input" />
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'group_id'); ?>
		<?php //echo $form->textField($model,'group_id'); ?>
        <?php echo CHtml::dropDownList('group_id' ,$model->group_id,$hrAdminGroupOption ,array('class'=>'c_select')); ?>
		<?php echo $form->error($model,'group_id'); ?>
	</div>
    
	<input type="hidden" name="action" value="true" />

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->